package com.jsb.laundry.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 用于订单保存数据时接收参数
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "订单创建请求数据")
public class CreateOrderRequest implements Serializable {
    private static final long serialVersionUID = 111L;

    @ApiModelProperty(value = "用户id",required = true)
    private String userId;

    @ApiModelProperty(value = "使用的卡券id(例: 优惠券、月卡 )",required = true)
    private String cardId;
    private String vipCardId; //vip卡
    private String monthCardId; //月卡
    private String schoolCardId; //校服id

    @ApiModelProperty(value = "上门取衣地址",required = true)
    private String userAddressComeId;

    @ApiModelProperty(value = "衣物送回地址",required = true)
    private String userAddressBackId;

    @ApiModelProperty(value = "用户预约上门时间",required = true)
    private Date appointmentTime;

    private String appointmentTimeStr;

    @ApiModelProperty(value = "订单中购买的商品",required = true)
    private List<PayModeRequest.OrderInfo> orderInfoList;

    @ApiModelProperty(value = "备注")
    private String note;

    /**
     *  要补差价的支付订单支付单号
     */
    private List<String> waitPayIdList;

    /**
     * 支付token防止订单重复提交
     */
    private String payToken;
    private String activityId;
    private String serveId;
}